package com.easymin.weixin.mapper;

import com.easymin.weixin.entity.Admin;
import com.easymin.weixin.entity.AdminCriteria;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin, AdminCriteria, Long> {
  Long countByExample(AdminCriteria example);

  int deleteByExample(AdminCriteria example);

  int deleteByPrimaryKey(Long id);

  int insert(Admin record);

  int insertSelective(Admin record);

  List<Admin> selectByExampleWithRowbounds(AdminCriteria example, RowBounds rowBounds);

  List<Admin> selectByExample(AdminCriteria example);

  Admin selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") Admin record,
      @Param("example") AdminCriteria example);

  int updateByExample(@Param("record") Admin record, @Param("example") AdminCriteria example);

  int updateByPrimaryKeySelective(Admin record);

  int updateByPrimaryKey(Admin record);
}
